
void close_watch_dog() {
    unsigned long* pwatchdog = (unsigned long*)0x53000000;
    *pwatchdog = 0;
    return;
}

void init_sdram() {
#define SDRAM_REG_BASE 0x48000000
    int i = 0;
    unsigned long* pIt = (unsigned long*)SDRAM_REG_BASE;
    unsigned long reg_value_arr[] = {
            0x22011110,
            0x700,
            0x700,
            0x700,
            0x700,
            0x700,
            0x700,
            0x00018005,
            0x00018005,
            0x008c07A3,
            0xB1,
            0x30,
            0x30
    };
    for(i = 0; i < 13; ++i) {
        *pIt = reg_value_arr[i];
        ++pIt;
    }
    return;
}


